package com.bawei.park2211a.news

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.bawei.base.mvvm.BaseViewActivity
import com.bawei.base.room.RoomUtlis
import com.bawei.park2211a.R
import com.bawei.park2211a.databinding.ActivityNewsDetailBinding
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
@Route(path = "/app/news/NewsDetailActivity")
class NewsDetailActivity : BaseViewActivity<ActivityNewsDetailBinding>() {


    override fun initView() {
        val all = RoomUtlis.getNewsDao().getAll()
        binding.title.text=all[0].title
    }

    override fun initData() {

    }
}